package com.afterglow.lcsrpc.fault.tolerant;

import com.afterglow.lcsrpc.model.RpcResponse;

import java.util.Map;

/**
 * Description:快速失败 - 容错策略（立刻通知外层调用方）
 * Date: 2025/01/12
 * author: lcs
 */
public class FailFastTolerantStrategy implements TolerantStrategy{
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException("服务报错", e);
    }
}
